﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.OrderInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int OrderId=(Convert.ToInt32(strid));
					ShowInfo(OrderId);
				}
			}
		}
		
	private void ShowInfo(int OrderId)
	{
		Maticsoft.BLL.OrderInfo bll=new Maticsoft.BLL.OrderInfo();
		Maticsoft.Model.OrderInfo model=bll.GetModel(OrderId);
		this.lblOrderId.Text=model.OrderId.ToString();
		this.lblUserId.Text=model.UserId.ToString();
		this.lblReceiveMan.Text=model.ReceiveMan;
		this.lblPayType.Text=model.PayType;
		this.lblOrderTotal.Text=model.OrderTotal.ToString();
		this.lblOrderStatus.Text=model.OrderStatus;
		this.lblOrderTime.Text=model.OrderTime.ToString();

	}


    }
}
